$('#ping').click(function () {
var splinename = $("#Local").val();
j = j + 1;
alert(j);
if(j == 1){
seriesname1 = splinename;
alert(seriesname1);
chart.series[0].name = seriesname1;
}
else if(j == 2) {
seriesname2 = splinename;
alert(seriesname2);
//chart.series[1].name = seriesname2;
}
else {
seriesname3 = splinename;
alert(seriesname3);
chart.series[2].name = seriesname3;
j = 0;
}
});